package com.oc.ags.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.oc.ags.dao.TruckDao;
import com.oc.ags.domain.TruckDO;
import com.oc.ags.service.TruckService;



@Service
public class TruckServiceImpl implements TruckService {
	@Autowired
	private TruckDao truckDao;
	
	@Override
	public TruckDO get(String truckNo){
		return truckDao.get(truckNo);
	}
	
	@Override
	public List<TruckDO> list(Map<String, Object> map){
		return truckDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return truckDao.count(map);
	}
	
	@Override
	public int save(TruckDO truck){
		return truckDao.save(truck);
	}
	
	@Override
	public int update(TruckDO truck){
		return truckDao.update(truck);
	}
	
	@Override
	public int remove(String truckNo){
		return truckDao.remove(truckNo);
	}
	
	@Override
	public int batchRemove(String[] truckNos){
		return truckDao.batchRemove(truckNos);
	}
	
}
